<?php
	$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
	$this->headTitle()->setSeparator(' - ');
	$this->headTitle('Phòng trọ');
	
	echo $this->doctype();
?>  
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
	<?php echo $this->render('layouts/front.phtml'); ?>
	<body <?php echo $this->bodyScripts ?>>
		<div id="preLoadImages"></div>
		<div id="wrapper">
			<?php echo $this->render('layouts/header.phtml'); ?>
			<?php echo $this->render('layouts/menu.phtml'); ?>
			<?php
				$layout = $this->cmsSearch('', '100%'); 
				echo $layout;
				$layout = $this->cmsSubmenu();
				echo $layout;
			?>
			<div id="wrapcontent">
				<div id="sidebar1">
					<div class="block">
						<div class="title">
							<span>Quản lý đăng tin</span>
						</div>
						<div class="content">
							<ul class="dropdown-menu menu" role="menu" aria-labelledby="dropdownMenu">
								<?php
									foreach($this->menuLoaiTin as $val) {
										$action = 'ptrtinrao';
										if ($val->group_loai_tin == 1) $action = 'oghtinrao';
										echo '<li><a tabindex="-1" href="' . $this->baseUrl('/member/' . $action . '/loaitin/' . $val->id) . '"><i class="arrow"></i>' . $val->ten . '</a></li>';
									}
								?>
							</ul>
							<div class="clear"></div>
						</div>
						<br class="clear" />
					</div>
					<div class="block">
						<div class="title">
							<span>Quản lý tài khoản</span>
						</div>
						<div class="content">
							<ul class="dropdown-menu menu" role="menu" aria-labelledby="dropdownMenu">
								<li><a tabindex="-1" href="<?php echo $this->baseUrl('/member/profile'); ?>"><i class="arrow"></i>Thông tin cá nhân</a></li>
								<li><a tabindex="-1" href="<?php echo $this->baseUrl('/member/taikhoan'); ?>"><i class="arrow"></i>Tài khoản scoins</a></li>
							</ul>
							<div class="clear"></div>
						</div>
						<br class="clear" />
					</div>
					<div class="block">
						<div class="title">
							<span>Quản lý tin nhắn</span>
						</div>
						<div class="content">
							<ul class="dropdown-menu menu" role="menu" aria-labelledby="dropdownMenu">
								<li><a tabindex="-1" href="<?php echo $this->baseUrl('/member/hopthu/loaithu/thuden'); ?>"><i class="arrow"></i>Thư đến</a></li>
								<li><a tabindex="-1" href="<?php echo $this->baseUrl('/member/hopthu/loaithu/thudagui'); ?>"><i class="arrow"></i>Thư đã gửi</a></li>
							</ul>
							<div class="clear"></div>
						</div>
						<br class="clear" />
					</div>
					<br class="clear" />
				</div>
				<div id="sidebar2">
		    		<?php echo $this->layout()->content ?>
					<br class="clear" />
				</div>
			</div>
		    <?php echo $this->render('layouts/footer.phtml'); ?>
	    </div>
	</body>
</html>